package apps;

import java.text.SimpleDateFormat;
import java.util.Date;

public class SavingsAccount_old extends Account_old
{
    private int birthDay;

    public SavingsAccount_old(Agency agency)
    {
	super(agency);
    }

    @Override
    public void printDetailedStatement()
    {
	System.out.println("Detaillierten Kontoauszug.");

	SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
	Date now = new Date();

	System.out.println("Datum: " + sdf.format(now));
	System.out.println("Gleichgewicht: " + this.getBalance());
	System.out.println("Gerburtstag: " + this.getBirthDay());
    }

    public void setBirthDay(int birthDay)
    {
	this.birthDay = birthDay;
    }

    public int getBirthDay()
    {
	return birthDay;
    }
}
